package mn.idax.exchange.otc.service;

import mn.idax.exchange.otc.entity.User;
import mn.idax.exchange.otc.vo.UserCertificateName;

import java.util.List;


/**
 * Create by jack_huang on 2018/8/10
 */
public interface UserService {

//    User getUserByNickName(String nickName);

    User getUserById(Integer userId);


    /**
     *
     * 功能描述:
     *      修改用户昵称
     * @param:
     * @return:
     * @auther: dison
     * @date: 2018/8/24 13:10
     */
    boolean updateNickName(User user, String nickName);


    /**
     *
     * 功能描述:
     *         验证昵称是否可修改
     * @param:
     * @return:
     * @auther: dison
     * @date: 2018/8/24 15:09
     */
    String verifyUsableUpdateNickName(int userId);

    boolean updateOTCNickName(Integer userId,String nickName);


    /**
     *
     * 功能描述:
     *      批量修改用户昵称
     * @param:
     * @return:
     * @auther: dison
     * @date: 2018/9/12 13:43
     */
    int batchUpdateNickName();

    //获取user认证的真实name
    UserCertificateName getUserCertificateName(Integer buyer,Integer seller);


    /**
     * 解冻用户
     * @param userid
     */
    void unforzenUserStatus(Integer userid);

    /**
     * 冻结用户
     * @param userid
     */
    void forzenUserStatus(Integer userid);

    /**
     * 获取被禁止场外交易的用户
     * @return
     */
    List<Integer> getMoreThanThreeCancelUser();
}
